﻿$(function () {
    window.progressDialog = new ProgressDialog();
    window.infoDialog = new InfoDialog();
    window.ajaxClass = new AjaxClass();
    window.resizeFlexiGrid = new ResizeFlexiGrid(".flexigrid", "#List1", ".flexigrid .bDiv", ["#TitleTR", "#SearchTR", "#PageTR", ".flexigrid .hDiv"], 4, 4);
    window.flexiGrid = new FlexiGrid("flexiGrid", "List1", "ListTD", "PageTR", "SearchTR", "resizeFlexiGrid", [
            { display: '自动编号', name: 'AutoID', width: 50, sortable: true, align: 'left', hide: true },
            { display: '系统编号', name: 'voucher_id', width: 60, sortable: true, align: 'left', hide: false },
            { display: '货号', name: 'pd_id', width: 60, sortable: true, align: 'left', hide: false },
            { display: '名称', name: 'pd_cn_name', width: 300, sortable: true, align: 'left', hide: false },
            { display: '规格', name: 'pd_cn_spec', width: 300, sortable: true, align: 'left', hide: false },
            { display: '单位', name: 'uom', width: 25, sortable: true, align: 'left', hide: false },
            { display: '条码', name: 'bar_code', width: 120, sortable: false, align: 'left', hide: false }
        ], "产品列表", JsonOriginal.GetList["SortName"], JsonOriginal.GetList["SortOrder"], JsonOriginal.GetList["SearchKey"], false, null, null);
    window.resizeFlexiGrid.Resize("resizeFlexiGrid");
});